"""
@author: jinwei
@file: config.py
@time: 2019/11/08 10:00
"""
import os, time

'''
配置app以及测试设备的相关信息
'''
SERVRE = 'http://localhost:4723/wd/hub'

desired_caps = {
    'platformName': 'Android',
    'deviceName': '127.0.0.1:7555',
    'platformVersion': '6.0.1',
    'appPackage': 'com.tencent.mm',
    'appActivity': 'com.tencent.mm.ui.LauncherUI',
    "resetKeyboard": "false",
}

TestandroidDeviceReadyTimeout = 30  # 超时时间
TestunicodeKeyboard = True
TestresetKeyboard = True
Dingtalk_access_token = ''  # 钉钉的token
Test_Project_name = ''
TiTestuser = ''
Test_user = "自动化"

# 定义测试报告输出路径
now = time.strftime("%Y-%m-%d_%H_%M_%S")
main_path = os.path.abspath(os.path.join(os.getcwd(), ".."))
reportpath = main_path + "\\testlog\\" + now + ".html"

# 定义测试用例yaml文件路径
file_path = main_path + '\\data\\caozuo_steps\\'

#定义测试用例excel表路径
excel_path = main_path + '\\data\\testcase_data\\'


# 运行时首先需要声明执行的哪个yaml文件和excel文件
yaml_file_name = 'login_yes.yaml'
excel_file_name = 'project_datacese.xlsx'
